package com.app.backend.activiti.serviceImpl;

import com.app.backend.activiti.dao.ActBizDao;
import com.app.backend.activiti.entity.ActBiz;
import com.app.backend.activiti.service.ActBusinessService;
import com.app.backend.common.base.BaseDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: ActBusinessServiceImpl
 * @description:
 * @author: Zhun.Xiao
 * @create: 2020-03-01 11:13
 **/


@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class ActBusinessServiceImpl implements ActBusinessService {


    @Autowired
    private ActBizDao actBizDao;

    @Override
    public BaseDao<ActBiz, String> getRepository() {
        return actBizDao;
    }

    @Override
    public List<ActBiz> findByProcDefId(String id) {
        return actBizDao.findByProcDefId(id);
    }
}